package com.dwxt.mall.service;


import com.dwxt.mall.dao.PromotionProductMapper;
import com.dwxt.mall.entity.PromotionProduct;
import com.dwxt.mall.entity.PromotionProductExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PromotionService {

    @Autowired
    private PromotionProductMapper promotionProductMapper;

    public List<PromotionProduct> selectPromotionProduct() {
        PromotionProductExample example = new PromotionProductExample();
        return promotionProductMapper.selectByExample(example);
    }
}
